Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(icons): Add PNG check to icon validation #6024

Merged
merged 8 commits into from
Sep 17, 2018
Merged

Conversation

exterkamp
Copy link
Member

fixes #4876

Summary
Adds the additional check of validating if an icon is a PNG when validating that an icon is the correct size.

Notes
Changed the way that artifacts are computed in audit tests so that they can take in a manifest.json as a param to use multiple different manifests for testing.

@exterkamp exterkamp changed the title core(icons): Add PNG check to icon validation. core(icons): Add PNG check to icon validation Sep 14, 2018
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Love the new tests.

Just one big question (type?) and then some naming suggestions

lighthouse-core/lib/icons.js Outdated Show resolved Hide resolved
lighthouse-core/lib/icons.js Outdated Show resolved Hide resolved
lighthouse-core/test/audits/splash-screen-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/audits/splash-screen-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/audits/webapp-install-banner-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/lib/icons-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/lib/icons-test.js Outdated Show resolved Hide resolved
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good. Last request for a case we didn't think about before :)

lighthouse-core/lib/icons.js Outdated Show resolved Hide resolved
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brendankenny brendankenny merged commit 25457c1 into master Sep 17, 2018
@brendankenny brendankenny deleted the bug/pwa-icon-check branch September 17, 2018 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lighthouse PWA audits pass even with a JPG icon
2 participants